package com.dongqi.business.controller;

import com.dongqi.business.service.AlgoService;
import com.dongqi.config.RestResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/algo")
public class AlgoController {
    @Autowired
    private AlgoService algoService;

    @GetMapping("/queryAllAlgoMethods")
    public RestResult queryAllAlgoMethods() {
        Object allMethods = algoService.queryAllAlgoMethods();
        return RestResult.success(allMethods);
    }

}
